<?php
include "../config/koneksi.php";
//echo $_POST['feedback'];
$nama_lengkap = $_POST['namalengkap'];
$email = $_POST['email'];
$comment = $_POST['feedback'];

//print_r($_POST);
$sql = "INSERT INTO feedback VALUES('$nama_lengkap', '$email', '$comment')";
//mysql_query($sql);
if(mysql_query($sql) == true){
	echo "<script type='text/javascript'>
                        alert ('Terimakasih Telah Mengisi Form Ini');
                        window.location='../';
                    </script>";
}else{
	echo "Gagal";
}





//echo $query;
/*if (mysql_query("INSERT INTO feedback(namalengkap,email,feedback,)
			VALUES ('$_POST[namalengkap]','$_POST[email]','$_POST[feedback]')")) {
	echo "<script type='text/javascript'>
                        alert ('Terimakasih Telah Mengisi Form Ini');
                        window.location='../';
                    </script>";
}else{
	echo "Error";
}*/

?>